reduce(1:100, function(x,y) x+y);

reduce(1:10, function(x,y) x * y, 1);